home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19990725-20000114 / 000188_news@columbia.edu _Wed Oct 13 09:55:41 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id JAA07638
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 13 Oct 1999 09:55:41 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id JAA09503
  7.     for kermit.misc@watsun.cc.columbia.edu; Wed, 13 Oct 1999 09:35:30 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Subject: Re: Kermit script or program to monitor serial line?
  11. Date: 13 Oct 1999 13:35:29 GMT
  12. Organization: Columbia University
  13. Message-ID: <7u21r1$98s$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@columbia.edu
  15.  
  16. In article <7u0a86$1idi$1@mars.mcs.net>,
  17. Richard Jordan <rjordan@Mars.mcs.net> wrote:
  18. : We're using a Routeabout Access EW as a central router in a frame relay
  19. : configuration; there are 9 remote sites coming in, each on its own PVC.
  20. : Some of the links have been problematic (its the telco having glitches
  21. : but sometimes the routabouts just will not recover without being re-
  22. : started).  The central site has an Alphacluster running OpenVMS V7.1
  23. : and UCX V4.1 (latest ECO, and yes I wish I could upgrade them too).
  24. : After having some batch jobs sitting on the alphas regularly pinging the
  25. : remote routers and notifying us on a ping failure, the fact that it'd be
  26. : much less load on the system/links/etc if we could just leave a process
  27. : telneted to the central router listening to the logging console (or 
  28. : perhaps using a direct serial connection to the router console port
  29. : doing the same thing) and sending notifications when the central router
  30. : sees a topology change or other error (by error name/number).  We would
  31. : determine which messages to enable to provide just what we needed and
  32. : have the program parse all incoming messages.  Most would just be logged
  33. : (no info messages, just warning and worse) and some would trigger an
  34. : email/page/whatever.
  35. : I'm hoping someone has sample code (maybe in BASIC?) for this type of
  36. : application, but I'd appreciate opinions on whether something like
  37. : this can be handled using Kermit scripting...
  38. :
  39. Yes.
  40.  
  41. : ... or if I'd be better off
  42. : dealing with UCX programming from BASIC (we do not have C... or any
  43. : other language, available).
  44. :
  45. No.  Kermit has tens of thousands of lines of code already written to do
  46. what you want.  Why duplicate all that?
  47.  
  48. I'd recommend you start with C-Kermit 7.0:
  49.  
  50.   http://www.columbia.edu/kermit/ck70.html
  51.  
  52. which is in the final stages of Beta testing, and is far advanced over the
  53. previous version in terms of scripting capabilties, and also has numerous
  54. VMS-specific improvements.  Get a copy of the manual:
  55.  
  56.   http://www.columbia.edu/kermit/ck60manual.html
  57.  
  58. to learn the script language, and also read the 7.0 release notes to learn
  59. about the new features:
  60.  
  61.   ftp://kermit.columbia.edu/kermit/test/text/ckermit2.txt
  62.  
  63. In brief outline, your application would:
  64.  
  65.   set host <hostname-of-router>
  66.   if fail exit 1 Can't reach router.
  67.   while true {
  68.       (wait for a line to come in)
  69.       (parse the line)
  70.       (if it's a significant event, handle it)
  71.       (maybe make some kind of log entry)
  72.   }
  73.  
  74. For lots of C-Kermit script examples, see:
  75.  
  76.   http://www.columbia.edu/kermit/ckscripts.html
  77.  
  78. - Frank